home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWDebug / Include / FWWTrace.h < prev   
Encoding:
C/C++ Source or Header  |  1994-04-21  |  1.3 KB  |  43 lines  |  [TEXT/MPS ]

  1. #if defined(FW_DEBUG) && defined(FW_BUILD_WIN) && !defined(FWWTRACE_H)
  2. #define FWWTRACE_H
  3. // This entire file is for debugging Windows applications only
  4. //========================================================================================
  5. //
  6. //    File:                FWWTrace.h
  7. //    Release Version:    $ 1.0d1 $
  8. //
  9. //    Creation Date:        3/28/94
  10. //
  11. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  12. //
  13. //========================================================================================
  14.  
  15. #ifndef _INC_WINDOWS
  16. #include <Windows.h>
  17. #endif
  18.  
  19. #ifdef __cplusplus 
  20. extern "C" {
  21. #endif
  22.  
  23.     void FAR PASCAL FW_PrivWinGetCallerInfo(HANDLE* phModule,
  24.                                      char* zModule,
  25.                                      WORD* pwSegment,
  26.                                      WORD* pwOffset,
  27.                                      unsigned n_TraceDepth);
  28.         // Crawls the stack and returns caller info as follows: *phModule is the Windows
  29.         // module handle, zModule (if not NULL) receives the name, *pwSegment is the
  30.         // ordinal segment number and pwOffset is the offset within that segment.
  31.         // n_TraceDepth specifies how far to crawl.
  32.         
  33.     void FAR PASCAL FW_PrivWinGetModuleName(HANDLE hModule,
  34.                                      char* zModule);
  35.         // Returns name of a Windows module identified by handle hModule.
  36.         // Module names do not exceed 8 characters.
  37.  
  38. #ifdef __cplusplus 
  39. }
  40. #endif
  41.       
  42. #endif
  43.